﻿<Window x:Class="XmlStudio.Dialogs.RangeDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:userControls="clr-namespace:XmlStudio.Resources.UserControls" 
        xmlns:loc="clr-namespace:Tomers.WPF.Localization;assembly=Tomers.WPF.Localization" 
        loc:Translate.Uid="RangeDialog"
        Title="{loc:Translate RangeDialog}" MinHeight="100" MinWidth="250"
        Style="{StaticResource XmlStudioDialogStyle}"
        WindowStartupLocation="CenterOwner">
    <Border BorderBrush="Gray" BorderThickness="1" Margin="{StaticResource DialogBoxMargin}" Background="{StaticResource DialogBackgoundBrush}">
        <Grid Margin="{StaticResource DialogBoxMargin}">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <TextBlock loc:Translate.Uid="RangeDialog.ChildCount" HorizontalAlignment="Left" Name="tbChildCountLabel" Text="{loc:Translate ChildCount:}" VerticalAlignment="Center" Margin="2" />
            <TextBlock loc:Translate.Uid="RangeDialog.Range" Grid.Row="1" HorizontalAlignment="Left" Name="tbRangeLabel" Text="{loc:Translate Range:}" VerticalAlignment="Center" Margin="2" />
            <TextBox Grid.Column="1" Grid.Row="1" HorizontalAlignment="Stretch" Name="tbRange" VerticalAlignment="Center" VerticalContentAlignment="Center" Margin="2" />
            <TextBlock Grid.Column="1" HorizontalAlignment="Stretch" Name="tbChildCount" Text="" VerticalAlignment="Center" Margin="2" />

            <userControls:OKCancelButtons OKClicked="Button2Click" Margin="0 7 0 0" Grid.Row="2" Grid.ColumnSpan="2" />
        </Grid>
    </Border>
</Window>
